package com.lvyq.javaprint.model;


import org.springframework.web.multipart.MultipartFile;

/**
 * @author lvyq
 * @version 1.0
 * Create by 2024-05-06 13:53
 */
public class PrintData {

    //打印份数设置
    public Integer copies;

    //sessionId 用于回复打印状态
    public String sessionId;

    //是否彩色打印  true为彩色打印，false为黑白打印
    boolean color;

    //纸张尺寸，缺省时,为打印机设计
    String paperSize;

    //打印内容,支持。目录,网路地址，以及打印文本内容
    public String content;

    //打印类型 PDF、IMG、TEXT、HTML
    public String type;

    //来源 text 纯文本  path 本地文件地址  url 网络地址  blob 文件流
    public String source;

    MultipartFile file;

    //打印方向
    String direction;

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public Integer getCopies() {
        return copies;
    }

    public void setCopies(Integer copies) {
        this.copies = copies;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public boolean isColor() {
        return color;
    }

    public void setColor(boolean color) {
        this.color = color;
    }

    public String getPaperSize() {
        return paperSize;
    }

    public void setPaperSize(String paperSize) {
        this.paperSize = paperSize;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }
}
